<?php

namespace App\Admin;

use Illuminate\Database\Eloquent\Model;

class Manager extends Model implements \Illuminate\Contracts\Auth\Authenticatable
{
    use \Illuminate\Auth\Authenticatable;
    protected $table='manager';
    protected $fillable=['id','username','gender','mobile','email','role_id','created_at','status'];
    protected $hidden = ['password','remember_token','updated_at'];
    //关联角色表
    public function Role(){
        return $this->hasOne('App\Admin\Role','id','role_id');
    }

}
